<?php
class fr_reader
{
    public function read($filename = 'FileZilla.xml')
    {
        $src = Blib_Utility_Xml::readFile(ROOT . 'src/' . $filename);
        echo '<pre>';
        // Blib::dump($src);
        foreach ($src as $server) {
            // echo '<ul>';
            foreach ($server->Server as $k => $v) {
                $k = (string) $k;
                $name = (string) $v->Name;
                $host = (string) $v->Host;
                $port = (string) $v->Port;
                $user = (string) $v->User;
                $Pass = (string) $v->Pass;
                echo "$k: $name\n" .
                     "  Host: $user@$host\n" .
                     "  Pass: $user\n" .
                     "  Port: $port\n<hr style='height:1px;border:none;border-bottom:1px dotted #999;' />";
            }
            // echo '</ul>';
        }
        echo '</pre>';

    }// end read

}// end fr_reader
?>